<template>
	<view v-if="show" class="loading-item">
		<view class="loading-item-box" v-if="loaded?false:true">
			<u-loading/>
			<text class="loading-item-txt">{{txt}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"b-u-loading-txt",
		props: {
			txt: {
				type: String,
				default: "加载中...",
			},
			show: {
				type: Boolean,
				default: true
			},
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="less">
	.loading-item{
		
		.loading-item-box{
			display: flex;
			justify-content: center;
			align-items: center;
		}
		.loading-item-txt{
			font-size: 26rpx;
			line-height: 50rpx;
			padding-left: 20rpx;
		}
	}
</style>